import request from "@/utils/request";

export const querySingerList = (page, size, params)=>{
    return request.get(
        `api/doc/singer/${page}/${size}/list/ext`,
        params,
    )
}
export const queryHotSingerList = (page, size, params)=>{
    return request.get(
        `api/doc/singer/${page}/${size}/hot/list/ext`,
        params,
    )
}
export const querySingerSelect = ()=>{
    return request.get(
        `api/doc/singer/list/ext`,
    )
}

export const addSinger = (params) =>{
    return request.post(
        `api/doc/singer/add`,
        params,
    )
}

export const delSingerById = async (id)=>{
    return await request.deleted(
        `api/doc/singer/${id}/del`,
    )
}
export const getSingerById = async (id)=>{
    return await request.get(
        `api/doc/singer/${id}/info/ext`,
    )
}
export const updateSinger = async (params)=>{
    return await request.put(
        "api/doc/singer/update",
        params,
    )
}
